package com.kgc.skProvider.controller;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.collection.remote.PaymentMethodRemote;
import com.kgc.skProvider.service.PaymentMethodService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class PaymentMethodController implements PaymentMethodRemote {

    private Logger logger = LoggerFactory.getLogger(PaymentMethodController.class);

    @Autowired
    private PaymentMethodService paymentMethodService;


    @Override
    public ResponseMsg selectPaymentMethod() {
        logger.info("PaymentMethodController selectPaymentMethod is start");
        ResponseMsg responseMsg = paymentMethodService.selectPaymentMethod();
        logger.info("PaymentMethodController selectPaymentMethod is end return are {}", responseMsg);
        return responseMsg;
    }

    @Override
    public ResponseMsg selectCwOtherIncomePayname() {
        logger.info("PaymentMethodController selectCwOtherIncomePayname is start");
        ResponseMsg responseMsg = paymentMethodService.selectCwOtherIncomePayname();
        logger.debug("PaymentMethodController selectCwOtherIncomePayname is end return are {}", responseMsg);
        return responseMsg;
    }
}
